#
# HoI - United Kingdom Events
#
#		written by Henrik Fhraeus
#

#########################################################################
#  Spanish Civil War - Intervention
#########################################################################
event = { 
	id = 3400
	random = no
	country = ENG
	
	trigger = {
		war = { country = SPA country = SPR }
		event = 3100 #SPA fascist nation
		NOT = {
			OR = {
			government = fascist
			alliance = { country = ENG country = SPR }
			war = { country = ENG country = SPR }
			war = { country = ENG country = SOV }
			war = { country = ENG country = GER }
			war = { country = ENG country = USA }
			war = { country = ENG country = FRA }
			}
		}
	        }
	
	name = "EVT_3400_NAME"
	desc = "EVT_3400_DESC"
	style = 0
	picture = "SCW"
	
	date = { day = 19 month = july year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME3400A" # Why support anarchist rabble?
		ai_chance = 90
		command = { type = dissent value = 1 }
		command = { type = relation which = SPR value = -15 }
		command = { type = relation which = SPA value = 10 }
		command = { type = relation which = SOV value = -5 }
		command = { type = relation which = FRA value = 5 }
		command = { type = relation which = GER value = 5 }
		command = { type = relation which = ITA value = 10 }
		command = { type = relation which = POR value = 10 }
		command = { type = domestic which = interventionism value = -1 }
		command = { type = sleepevent which = 3901 }
	}
	action_b = {
		name = "ACTIONNAME3400B" # Send materiel and volunteers
		ai_chance = 10
		command = { type = money value = -10 } # was -400
		command = { type = free_money value = -13 }
		command = { type = manpowerpool value = -10 }
		#command = { type = supplies value = -1800 } # was -1800 instead of -60x30
		command = { type = free_supplies value = -60 }
		command = { type = trigger which = 3409 value = 30 }
		command = { type = dissent value = 2 }
		command = { type = relation which = SPR value = 15 }
		command = { type = relation which = SPA value = -10 }
		command = { type = relation which = SOV value = 5 }
		command = { type = relation which = FRA value = -5 }
		command = { type = relation which = GER value = -5 }
		command = { type = relation which = ITA value = -10 }
		command = { type = relation which = POR value = -10 }
		command = { type = domestic which = interventionism value = 1 }
		command = { type = domestic which = political_left value = 1 }
		command = { type = trigger which = 3103 } #SPR
		command = { type = trigger which = 3722 } #USA
		command	= { type = setflag which = SCW_allied_intervention }
		command	= { type = local_setflag which = SCW_UK_intervention }
	}
}

event = {
	id = 3409
	random = no
	country = ENG

	#triggered by 3400

	name = "EVT_3400_NAME"
	desc = "EVT_3400_DESC"
	style = 0
	picture = "SCW"

	action_a = {
		name = "OK"
		command = { type = free_money value = 13 }
		command = { type = free_supplies value = 60 }
	}
}

#########################################################################
#  Guarantee Independence to Poland
#########################################################################
event = {
	id = 3401
	random = no
	country = ENG

	trigger = {
		exists = POL
	        exists = GER
		OR = { 
		       event = 2006 #  The End of Czechoslovakia - Czechs annexed
		       event = 2007 #  The End of Czechoslovakia - Czechs wish a fight!
		       event = 2011 #  The End of Czechoslovakia - Czecho-Slovakia partitioned
		       event = 2012 #  The End of Czechoslovakia - Czechs fight!
		}
		NOT = {
			OR = {
				ispuppet = ENG
				alliance = { country = POL country = SOV }
				alliance = { country = POL country = GER }
                                alliance = { country = POL country = ENG }
			}
		}
		NOT = {
			atwar = POL
		}
	}


	name = "EVT_3401_NAME"
	desc = "EVT_3401_DESC"
	style = 0
	picture = "guarantee_POL"

	date = { day = 30 month = march year = 1939 }

	action_a = {
		ai_chance = 99
		name = "ACTIONNAME3401A" # Poland must be protected
		command = { type = relation which = POL value = 25 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = GER value = -15 }
		command = { type = domestic which = interventionism value = 1 }
		command = { type = money value = -200 }
		command = { type = trigger which = 3600 } # POL
	}
	action_b = {
		ai_chance = 1
		name = "ACTIONNAME3401B" # The world must be spared another Great War
		command = { type = dissent value = 15 }
		command = { type = relation which = POL value = -25 }
		command = { type = relation which = FRA value = -10 }
		command = { type = relation which = GER value = 15 }
		command = { type = domestic which = interventionism value = -2 }
		command = { type = trigger which = 3603 } # POL
	}
}
#########################################################################
#  Guarantee Independence to Poland - Poland Accepts
#########################################################################
event = {
	id = 3402
	random = no
	country = ENG

	# Triggered by POL 3600

	name = "EVT_3402_NAME"
	desc = "EVT_3402_DESC"
        picture = "chameberlain"
	style = 0

	action_a = {
		name = "OK" # Great!
		command = { type = alliance which = POL }
		command = { type = trigger which = 51 } # UK Gears up for war
		command = { type = trigger which = 52 } # France Gears up for war
	}
}
#########################################################################
#  Guarantee Independence to Poland - Poland Declines
#########################################################################
event = {
	id = 3403
	random = no
	country = ENG

	# Triggered by POL 3600

	name = "EVT_3403_NAME"
	desc = "EVT_3403_DESC"
       picture = "poland"
	style = 0

	action_a = {
		name = "OK" # Their loss
		command = { }
	}
}
#########################################################################
#  The Lend-Lease Act - The First Shipment
#########################################################################
event = {
	id = 3404
	random = no
	country = ENG

	# Triggered by USA 3700

	name = "EVT_3404_NAME"
	desc = "EVT_3404_DESC"
	style = 0
	picture = "lend_lease"

	action_a = {
		name = "OK" # Excellent!
		command = { type = supplies value = 5000 }
		command = { type = oilpool value = 2500 }
		command = { type = metalpool value = 2500 }

		#command = { type = money value = 1000 }
	}
}
#########################################################################
#  A Lend-Lease Shipment Arrives from the USA
#########################################################################
event = {
	id = 3405
	random = no
	country = ENG
	persistent = yes

	# Triggered by USA 3702. NOTE: May be triggered several times.

	name = "EVT_3405_NAME"
	desc = "EVT_3405_DESC"
	style = 0
	picture = "lend_lease"

	action_a = {
		name = "OK" # Excellent!
		command = { type = supplies value = 1500 }
		command = { type = oilpool value = 600 }
		command = { type = metalpool value = 300 }
		#command = { type = construct which = ic where = 9 value = 1 } #
		#command = { type = construct which = ic where = 10 value = 1 } #
	}
}
#########################################################################
#  The Independence of India
#########################################################################
event = {
	id = 3406
	random = no
	country = ENG

	trigger = {
		government = democratic
		random = 8 # 8% chance every month
		control = { province = 1469 data = ENG } # Delhi
		control = { province = 1475 data = ENG } # Mushafarrabad
		NOT = {
			exists = IND
			exists = PAK
			exists = GER
		}
	}

	name = "EVT_3406_NAME"
	desc = "EVT_3406_DESC"
        picture = "india"
	style = 0

	date = { day = 1 month = november year = 1945 }
	offset = 30
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME3406A" # They cannot be held back any longer
		
		
		# Burma - done in advance
		command = { type = removecore which = 1289 }
		command = { type = removecore which = 1290 }
		command = { type = removecore which = 1296 }
		command = { type = removecore which = 1297 }
		command = { type = removecore which = 1298 }
		command = { type = removecore which = 1299 }
		command = { type = removecore which = 1300 }
		command = { type = removecore which = 1301 }
		command = { type = removecore which = 1302 }
		command = { type = removecore which = 1346 }
		command = { type = removecore which = 1304 }
		command = { type = removecore which = 1292 }
		command = { type = removecore which = 1295 }
		command = { type = removecore which = 1291 }
		command = { type = removecore which = 1877 }
		command = { type = removecore which = 1898 }
		command = { type = removecore which = 1294 }

		# India
		command = { type = removecore which = 1465 }
		command = { type = removecore which = 1466 }
		command = { type = removecore which = 1479 }
		command = { type = removecore which = 1476 }
		command = { type = removecore which = 1478 }
		command = { type = removecore which = 1477 }
		command = { type = removecore which = 1469 }
		command = { type = removecore which = 1470 }
		command = { type = removecore which = 1471 }
		command = { type = removecore which = 1472 }
		command = { type = removecore which = 1456 }
		command = { type = removecore which = 1468 }
		command = { type = removecore which = 1467 }
		command = { type = removecore which = 1464 }
		command = { type = removecore which = 1463 }
		command = { type = removecore which = 1460 }
		command = { type = removecore which = 1459 }
		command = { type = removecore which = 1457 }
		command = { type = removecore which = 1458 }
		command = { type = removecore which = 1461 }
		command = { type = removecore which = 1508 }
		command = { type = removecore which = 1462 }
		command = { type = removecore which = 1505 }
		command = { type = removecore which = 1506 }
		command = { type = removecore which = 1507 }
		command = { type = removecore which = 1509 }
		command = { type = removecore which = 1510 }
		command = { type = removecore which = 1511 }
		command = { type = removecore which = 1512 }
		command = { type = removecore which = 1513 }
		command = { type = removecore which = 1514 }
		command = { type = removecore which = 1515 }
		command = { type = removecore which = 1284 }
		command = { type = removecore which = 1287 }
		command = { type = removecore which = 1454 }
		command = { type = removecore which = 1878 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1516 }
		command = { type = removecore which = 1517 }
		command = { type = removecore which = 1518 }
		command = { type = removecore which = 1519 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }

		# Pakistan
		command = { type = removecore which = 1494 }
		command = { type = removecore which = 1481 }
		command = { type = removecore which = 1480 }
		command = { type = removecore which = 1482 }
		command = { type = removecore which = 1483 }
		command = { type = removecore which = 1475 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }
		


		command = { type = independence which = PAK value = 1 }
		command = { type = trigger which = 900130 }
		command = { type = trigger which = 134 }

		command = { type = independence which = IND value = 1 }
		command = { type = trigger which = 900127 }

		

	}
	action_b = {
		name = "ACTIONNAME3406B" # This must not be allowed, it would signal the death of Empire

		command = { type = dissent value = 20 }

		# Burma - done in advance
		command = { type = removecore which = 1289 }
		command = { type = removecore which = 1290 }
		command = { type = removecore which = 1296 }
		command = { type = removecore which = 1297 }
		command = { type = removecore which = 1298 }
		command = { type = removecore which = 1299 }
		command = { type = removecore which = 1300 }
		command = { type = removecore which = 1301 }
		command = { type = removecore which = 1302 }
		command = { type = removecore which = 1346 }
		command = { type = removecore which = 1304 }
		command = { type = removecore which = 1292 }
		command = { type = removecore which = 1295 }
		command = { type = removecore which = 1291 }
		command = { type = removecore which = 1877 }
		command = { type = removecore which = 1898 }
		command = { type = removecore which = 1294 }

		# India
		command = { type = removecore which = 1465 }
		command = { type = removecore which = 1466 }
		command = { type = removecore which = 1479 }
		command = { type = removecore which = 1476 }
		command = { type = removecore which = 1478 }
		command = { type = removecore which = 1477 }
		command = { type = removecore which = 1469 }
		command = { type = removecore which = 1470 }
		command = { type = removecore which = 1471 }
		command = { type = removecore which = 1472 }
		command = { type = removecore which = 1456 }
		command = { type = removecore which = 1468 }
		command = { type = removecore which = 1467 }
		command = { type = removecore which = 1464 }
		command = { type = removecore which = 1463 }
		command = { type = removecore which = 1460 }
		command = { type = removecore which = 1459 }
		command = { type = removecore which = 1457 }
		command = { type = removecore which = 1458 }
		command = { type = removecore which = 1461 }
		command = { type = removecore which = 1508 }
		command = { type = removecore which = 1462 }
		command = { type = removecore which = 1505 }
		command = { type = removecore which = 1506 }
		command = { type = removecore which = 1507 }
		command = { type = removecore which = 1509 }
		command = { type = removecore which = 1510 }
		command = { type = removecore which = 1511 }
		command = { type = removecore which = 1512 }
		command = { type = removecore which = 1513 }
		command = { type = removecore which = 1514 }
		command = { type = removecore which = 1515 }
		command = { type = removecore which = 1284 }
		command = { type = removecore which = 1287 }
		command = { type = removecore which = 1454 }
		command = { type = removecore which = 1878 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1516 }
		command = { type = removecore which = 1517 }
		command = { type = removecore which = 1518 }
		command = { type = removecore which = 1519 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }

		# Pakistan
		command = { type = removecore which = 1494 }
		command = { type = removecore which = 1481 }
		command = { type = removecore which = 1480 }
		command = { type = removecore which = 1482 }
		command = { type = removecore which = 1483 }
		command = { type = removecore which = 1475 }
		command = { type = removecore which = 1474 }
		command = { type = removecore which = 1285 }
		command = { type = removecore which = 1286 }
		command = { type = removecore which = 1288 }
	}
}

##############################################################################
# German or Italian direct intervention in Spanish Civil War - UK Reaction
##############################################################################

event = {
	id = 3407
	random = no
	country = ENG

	trigger = {
		flag = Axis_SCW_Invasion
	}

	name = "EVT_3407_NAME"
	desc = "EVT_3407_DESC"
	picture = "Politician"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 1 month = january year = 1999 }

	action_a = {
		
		name = "EVT_3407_ACTION_A"
		command = { type = domestic which = defense_lobby value = 2 }
		command = { type = domestic which = interventionism value = 2 }

	}
}

#########################################################################
#  US Occupation of Iceland and Greenland
#########################################################################
event = { 
	id = 3900
	random = no
	country = ENG
	
	# Triggered by USA 3705
	
	name = "EVT_3900_NAME"
	desc = "EVT_3900_DESC"
       picture = "american_soldiers_winter"
	style = 0
	
	action_a = {
		name = "OK" # Give them to the USA.
		command = { type = secedeprovince which = USA value = 800 } # Gothab
		command = { type = secedeprovince which = USA value = 1 } # Reykjavik
		command = { type = secedeprovince which = USA value = 2 } # Akureyri
		command = { type = relation which = GER value = -15 }
		command = { type = relation which = USA value = 10 }
	}
}

#########################################################################
#  Spanish Civil War ends - An important experience (UK)
#########################################################################
event = {
	id = 3901
	random = no
	country = ENG

	trigger = {
		# pre-requisites for event to trigger: 
		government = democratic
		flag = SCW_allied_intervention
		local_flag = SCW_UK_intervention
		NOT = { exists = SPA }

		# conditions that prevent event:
		NOT = {
			war = { country = ENG country = SPR }
			war = { country = ENG country = SOV }
			war = { country = ENG country = GER }
			war = { country = ENG country = FRA }
			war = { country = ENG country = ITA }
		}
	}

	name = "EVT_3901_NAME"
	desc = "EVT_3901_DESC"
	style = 0
	picture = "SCWuk"

	date = { day = 18 month = july year = 1936 }
	offset = 5
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME3901A" # Great! 
		command = { type = relation which = SPR value = 10 }	# 
		command = { type = manpowerpool value = 5 }		# Soldiers return home
		command = { type = dissent value = -1 }
		command = { type = gain_tech which = 9210 } 		# get blueprints for Frontal Missions Doctrine
		command = { type = gain_tech which = 9220 } 		# get blueprints for Fighter Veteran Initiative
	}
}

####################################################################
#  Unlock UK Divisions for Human Player at Start of 1936 Campaign
####################################################################

event = { 
	id = 3408
	random = no
	country = ENG

	trigger = { ai = no }

	name = "EVT_3408_NAME" 
	desc = "EVT_3408_DESC"
	style = 0
	picture = "British_reinforcments5"

	date = { hour = 2 day = 0 month = january year = 1936 }

	action_a = {
		name = "ACTIONNAME3408A"
		command = { type = unlock_division which = 12700 value = 9 } # Hong Kong Defence Force
		command = { type = unlock_division which = 12700 value = 11 } # Singapore Defence Force
		command = { type = unlock_division which = 12700 value = 13 } # Gibraltar Defence Force
		command = { type = unlock_division which = 12700 value = 15 } # Ceylon Defence Force
		command = { type = unlock_division which = 12700 value = 17 } # Malta Defence Force
		command = { type = unlock_division which = 12700 value = 301 } # Plymouth Coastal Forces
		command = { type = unlock_division which = 12700 value = 303 } # Portsmouth Coastal Forces
		command = { type = unlock_division which = 12700 value = 305 } # Dover Coastal Forces
		command = { type = unlock_division which = 12700 value = 307 } # Norwich Coastal Forces
		command = { type = unlock_division which = 12700 value = 309 } # Sheffield Coastal Forces
		command = { type = unlock_division which = 12700 value = 311 } # Sunderland Coastal Forces
		command = { type = unlock_division which = 12700 value = 313 } # Edinburgh Coastal Forces
		command = { type = unlock_division which = 12700 value = 315 } # Glasgow Coastal Forces
		command = { type = unlock_division which = 12700 value = 317 } # Dunfermline Garrison
		command = { type = unlock_division which = 12700 value = 319 } # Aberdeen Garrison
		command = { type = unlock_division which = 12700 value = 321 } # Inverness Garrison
		command = { type = unlock_division which = 12700 value = 323 } # Scapa Flow Garrison
		command = { type = unlock_division which = 12700 value = 325 } # Stornoway Garrison
		command = { type = unlock_division which = 12700 value = 327 } # Belfast Coastal Forces
		command = { type = unlock_division which = 12700 value = 329 } # Portadown Coastal Forces
		command = { type = unlock_division which = 12700 value = 331 } # Blackpool Coastal Forces
		command = { type = unlock_division which = 12700 value = 333 } # Liverpool Coastal Forces
		command = { type = unlock_division which = 12700 value = 335 } # Cardiff Garrison
		command = { type = unlock_division which = 12700 value = 337 } # Liverpool Coastal Forces
		command = { type = unlock_division which = 12700 value = 339 } # Bristol Coastal Forces
		command = { type = unlock_division which = 12700 value = 341 } # London Garrison
		command = { type = unlock_division which = 12700 value = 343 } # Birmingham Garrison
		}
	}
	
####################################################################
#  UK strongly supports Free France
####################################################################

event = {
	id = 3410
	random = no
	country = ENG

	#triggered by 970 FRA

	name = "EVT_3410_NAME"
	desc = "EVT_3410_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME3410A"
		ai_chance = 100
		command = { type = relation which = FRA value = 15 }
		command = { type = free_ic value = -14 }
		command = { type = free_energy value = -40 }
		command = { type = free_metal value = -20 }
		command = { type = free_rare_materials value = -10 }
		command = { type = free_oil value = -20 }
		command = { type = free_supplies value = -80 }
		command = { type = trigger which = 3412 } #Free France receives this
		command = { type = local_setflag which = Free_IC_for_Free_France }
	}
	action_b = {
		name = "ACTIONNAME3410B"
		ai_chance = 0
		command = { type = relation which = FRA value = -15 }
	}
}

event = {
	id = 3411
	random = no
	country = ENG

	trigger = {
		local_flag = Free_IC_for_Free_France # Free Frances receives offmap ic
		OR = {
			event = 2802 # Liberation of France-Metropolitain
			NOT = { ic = 100 }
			NOT = { alliance = { country = ENG country = FRA } }
			NOT = { exists = FRA }
			AND = {
				alliance = { country = ENG country = FRA }
				atwar = no
			}
		}
	}

	name = "EVT_3411_NAME"
	desc = "EVT_3411_DESC"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		name = "OK"
		ai_chance = 100
		command = { type = relation which = FRA value = 15 }
		command = { type = free_ic value = 14 }
		command = { type = free_energy value = 40 }
		command = { type = free_metal value = 20 }
		command = { type = free_rare_materials value = 10 }
		command = { type = free_oil value = 20 }
		command = { type = free_supplies value = 80 }
		command = { type = trigger which = 3413 } #Free France receives this
		command = { type = local_clrflag which = Free_IC_for_Free_France }
	}
}

####################################################################
###UKs response to Persian revolt. -UK #created by Pioniere
####################################################################
#event = {
#	id = 919199
#	random = no
#	country = ENG
#triggered by PER 919197
#
#	trigger = {
#	event = 919199
#	exists = PER
#	}
#	
#	name = "UK responds to Persian revolt"
#	desc = "What can be done with the current situation?"
#	picture = "Politician"
#	
#	action_a = { 
#	ai_chance = 60
#		name = "We cannot afford more conflicts"
#		command = { type = relation which = PER value = 20 }
#		command = { type = relation which = AFG value = 10 }
#		command = { type = relation which = SOV value = -5 }
#		command = { type = dissent value = 1 }
#		}
#		
#	action_b = { 
#		name = "We must stopp them"
#		ai_chance = 40
#		command = { type = relation which = PER value = -100 }
#		command = { type = relation which = AFG value = -10 }
#		command = { type = relation which = SOV value = 10 }
#		command = { type = dissent value = -1 }
#		command = { type = war which = PER }
#		}
#
#
#	}
